import Vue from 'vue'

import 'normalize.css/normalize.css' // 初始化css

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n

import '@/styles/index.scss' // 全局css

import App from './App'
import store from './store'
import router from './router'
// 本地mock方法
/* import { mockXHR } from '../mock'
mockXHR() */
import '@/icons' // icon
import '@/permission' // 权限检测js

Vue.use(ElementUI, { locale })

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
